<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<h:head>
		<title>
			<ui:insert name="title">#{msgs['default.title']}</ui:insert>
		</title>
		<link href="#{facesContext.externalContext.requestContextPath}/css/styles.css" rel="stylesheet" type="text/css" />
	</h:head>
	<h:body>
		<p:ajaxStatus style="width:64px;height:64px;position:fixed;right:100px;top:10px">  
		    <f:facet name="start">  
		        <p:graphicImage value="../../../img/loading.gif" />  
		    </f:facet>  
		  
		    <f:facet name="complete">  
		        <h:outputText value="" />  
		    </f:facet>  
		</p:ajaxStatus>
		<h:form id="templateBodyForm">
			<p:layout fullPage="true">
				<p:layoutUnit position="north" size="100">
					<div class="header ui-corner-all">
						<p:commandLink value="#{msgs['template.exit']}" action="#{loginBean.logout}"
								style="color:white;font-size:12px;" styleClass="exit-link"/>
					</div>
				</p:layoutUnit>
		
				<p:layoutUnit position="west" size="250" collapsible="true"
						header="#{msgs['menu.title']}" styleClass="centerContent">
					<p:menu>  
				        <p:submenu label="#{msgs['menu.admin']}">  
				            <p:menuitem value="#{msgs['menu.admin.params']}"
				            		outcome="/pages/authenticated/admin/params?faces-redirect=true"/>  
				            <p:menuitem value="#{msgs['menu.admin.train']}"
				            		outcome="/pages/authenticated/admin/train?faces-redirect=true"/>  
				            <p:menuitem value="#{msgs['menu.admin.load']}"
				            		outcome="/pages/authenticated/admin/load?faces-redirect=true"/>  
				        </p:submenu>  
				    </p:menu>  
				</p:layoutUnit>
		
				<p:layoutUnit position="center" header="#{msgs['template.content']}">
					<p:fieldset style="height:95%">
						<ui:insert name="content">
							<p>
								<b>#{msgs['default.content']}</b>
							</p>
						</ui:insert>
					</p:fieldset>
				</p:layoutUnit>
		
				<p:layoutUnit position="south" size="100">
					<div class="footer ui-corner-all">
						<h:outputText value="#{msgs['footer.text']}" />
					</div>
				</p:layoutUnit>
			</p:layout>
		</h:form>
	</h:body>
</html>